package com.allscore.nacos.consumer.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 *
 * @author Administrator
 */
@Component
@Scope("singleton")
@NacosPropertySource(dataId = "demo-nacos-config", autoRefreshed = true, groupId = "cmm")
public class NacosConfig {

    @NacosValue(value = "${provider.user.url:http://demo-nacos-provider}", autoRefreshed = true)
    private String userUrl;

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

}
